package com.shen.GOF.single;

//静态内部类
public class Holder {

    public static Holder getInstance() {
        return HolderClass.holder;
    }

    private Holder() {
    }

    public static class HolderClass {
        private static final Holder holder = new Holder();
    }
}
